export const cstypedata: string[] = [
    '全部', '广告设计', 'UI设计', '电商淘宝', '插画', '装饰·装修', '摄影图', '新媒体配图', '3D素材'
];

export const csimgdata: string[] = [
    'https://js.ibaotu.com/act/24/07/18/6698890e7f987.jpg',
    'https://js.ibaotu.com/act/24/07/18/6698890e795ed.jpg',
    'https://js.ibaotu.com/act/24/07/18/669889070786a.jpg',
    'https://js.ibaotu.com/act/24/07/18/6698890e7b5b0.jpg',
    'https://js.ibaotu.com/act/24/07/18/6698890ecefdf.jpg'
];

interface ColorData {
    id: number;
    name: string;
    flag: boolean;
    image: string;
    hex: string;
}

export const csdata: ColorData[] = Array.from({ length: 100 }, (_, i) => ({
    id: i + 1,
    name: `颜色 ${i + 1}`,
    flag: i % 3 === 0,
    image: csimgdata[Math.floor(Math.random() * csimgdata.length)],
    hex: `#${Math.floor(Math.random() * 16777215).toString(16).padStart(6, '0')}`
}));
